/*
 * Title:        CloudScheduler Toolkit
 * Description:  a Toolkit for Modeling and Simulation of Job Scheduling and Resource Provisioning in Cloud System
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Author:       Fuhui Wu
 *
 * Copyright (c) 2013-2014, The National University of Defense Technology, China
 */

package org.nudt.jCloud.infrastructure;

public class Pe {
	private int id;
	private double mips;
	private boolean busy;

	public Pe(int id) {
		this(id, 0);
	}
	
	public Pe(int id, double mips){
		this.id = id;
		this.mips = mips;
		setBusy(false);
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the mIPS
	 */
	public double getMIPS() {
		return mips;
	}

	/**
	 * @param mIPS the mIPS to set
	 */
	public void setMIPS(double mips) {
		this.mips = mips;
	}

	/**
	 * @return the busy
	 */
	public boolean isBusy() {
		return busy;
	}

	/**
	 * @param busy the busy to set
	 */
	public void setBusy(boolean busy) {
		this.busy = busy;
	}

}
